<?php defined('InNcPHP') or exit('Access Invalid!');?>
<script type="text/javascript" src="<?php echo RESOURCE_URL;?>/common/jquery-ui/jquery.ui.js"></script>
<script type="text/javascript" src="<?php echo RESOURCE_URL;?>/common/jquery-ui/i18n/zh-CN.js" charset="utf-8"></script>
<link rel="stylesheet" type="text/css" href="<?php echo RESOURCE_URL;?>/common/jquery-ui/themes/ui-lightness/jquery.ui.css"  />
<div class="page">
    <table class="table tb-type2 order">
        <tbody>
        <tr class="space">
            <th colspan="15"><?php echo $lang['order_index_status'];?></th>
        </tr>
        <tr>
            <td colspan="2">
                <ul>
                    <li><strong><?php echo $lang['order_index_order_sn'];?>:</strong><?php echo $output['order']['order_sn'];?></li>
                    <li><strong>支付方式:</strong><?php echo $output['pay_type'][['order']['pay_type']];?></li>
                    <li><strong>支付单号:</strong><?php echo $output['order']['pay_sn'];?></li>
                    <li><strong><?php echo $lang['order_index_money'];?>:</strong><span class="red_common"><?php echo $lang['currency'].$output['order']['refund_money'];?> </span></li>
                    <li><strong>退款金额:</strong><span class="red_common"><?php echo $lang['currency'].$output['order']['refund_money'];?> </span></li>
                </ul>
            </td>
        </tr>
        <tr class="space">
            <th colspan="2">退款信息</th>
        </tr>
        <tr>
            <th>买家退款理由</th>
        </tr>
        <tr>
            <td>
                <ul>
                    <li><strong>手机<?php echo $lang['nc_colon'];?></strong><?php echo $output['order']['member_phone'];?></li>
                    <li><strong>退款原因<?php echo $lang['nc_colon'];?></strong><?php echo $output['order']['refund_type'];?></li>
                    <li><strong>文字说明<?php echo $lang['nc_colon'];?></strong><?php echo $output['order']['note'];?></li>

                    <?php if($output['order']['pic_1']): ?>
                        <li><strong>图片说明<?php echo $lang['nc_colon'];?></strong><a data-src="<?php echo $output['order']['pic_1']; ?>" class="show-img" style="cursor:pointer;">[查看]</a></li>
                    <?php endif; ?>
                    <?php if($output['order']['pic_2']): ?>
                        <li><strong>图片说明<?php echo $lang['nc_colon'];?></strong><a data-src="<?php echo $output['order']['pic_3']; ?>" class="show-img" style="cursor:pointer;">[查看]</a></li>
                    <?php endif; ?>
                    <?php if($output['order']['pic_3']): ?>
                        <li><strong>图片说明<?php echo $lang['nc_colon'];?></strong><a data-src="<?php echo $output['order']['pic_3']; ?>" class="show-img" style="cursor:pointer;">[查看]</a></li>
                    <?php endif; ?>
                    <li><strong>发起时间<?php echo $lang['nc_colon'];?></strong><?php echo date('Y-m-d H:i:s',$output['order']['addtimes']);?></li>
                </ul>
            </td>
        </tr>
        <tr>
            <th>卖家处理意见</th>
        </tr>
        <tr>
            <td>
                <ul>
                    <li><strong><?php echo $lang['order_index_member_phone'];?><?php echo $lang['nc_colon'];?></strong><?php echo $output['order']['member_phone'];?></li>
                    <li><strong>退款支付交易号<?php echo $lang['nc_colon'];?></strong><?php echo $output['order']['refund_sn'];?></li>
                    <li><strong>卖家处理说明<?php echo $lang['nc_colon'];?></strong><?php echo $output['order']['replay'];?></li>
                    <li><strong><?php echo $lang['order_index_status'];?>:</strong><?php echo $output['status'][$output['order']['status']];?></li>
                    <?php if($output['order']['order_type']==2) {?>
                        <li><strong><?php echo $lang['order_index_member_card'];?><?php echo $lang['nc_colon'];?></strong><?php echo $output['order']['member_idcard'];?></li>
                    <?php } ?>
                    <?php if($output['order']['status']==1): ?>
                    <li><strong>是否到账<?php echo $lang['nc_colon'];?></strong><?php echo $output['order']['if_pay']==1?'已到账':'未到账';?></li>
                    <?php  endif; ?>
                </ul>
            </td>
        </tr>

        </tbody>
        <tfoot>
        <tr class="tfoot">
            <td><a href="JavaScript:void(0);" class="btn" onclick="history.go(-1)"><span><?php echo $lang['nc_back'];?></span></a></td>
        </tr>
        </tfoot>
    </table>
</div>
<img id="show-img" style="display: none;max-width: 100%;max-height: 350px;position: relative;" src="http://image5.tuku.cn/pic/wallpaper/fengjing/daziranshenqishanshuifengjingbizhi/012.jpg">
<script>
    //显示图片
    $('.show-img').click(function () {
        var src = $(this).data('src');
        layer.open({
            type: 1,
            title: false,
            content: $('#show-img').attr('src',src)
        });
    });
</script>
